// scroll
var scrollObj = {
    setScroll: function () {
        $(".scroll").mCustomScrollbar({
            scrollInertia: 600,
            //滚动的惯性值
            autoDraggerLength: false,
            //根据内容区域，自动调整滚动条拖块的长度，值true，false
            advanced: {
                updateOnContentResize: true
            }
        })
    },
    changeData: function (Jinfo) {
        var str = '';
        for (var i in data) {
            str += '<li class="li-a"><span class="sp0">' + data[i]['key_0'] + '</span><span class="sp1">' + data[i]['key_1'] + '</span><span class="sp2">' + data[i]['key_2'] + '</span></li>'
        }

        $('.scroll ul').html(str)
        this.setScroll()
    },
    init: function () {
        this.changeData()
    },
}
scrollObj.init();
